package com.maykk.Demo05;

public class Person {
    public String name;
    public int age;
public void eat() {
    System.out.println(this.age + "岁的" + this.name + "会吃");
}
    public void setInfo(String name, int age) {
//        System.out.println(name);
//        System.out.println(age);
//        System.out.println("===================================");
//        System.out.println(this.name);
//        System.out.println(this.age);
        this.name = name;
        this.age = age;
    }
}
